<?php include (dirname(__FILE__)."/../include/header.php"); ?>
<?php if(!isset($_SESSION['_shop'])){header("location:../user_login.php");}?>
<?php 
	$sql=mysql_query("select * from zy_shop where shop_id='".$_SESSION['_shop']['shop_id']."'");
	$shop=mysql_fetch_array($sql);
?>
 <div class="container">
    <ul class="breadcrumb">
      <li> 店铺名称 <span class="divider">/</span> </li>
      <li><a href="<?php echo SITE_ROOT;?>/shop/edit_password.php"">修改密码</a></li>
    </ul>
    <div class="row">
      <div class="span12 wash-paper user-center profile">
        <div class="row">
          <div class="span3">
            <?php include (dirname(__FILE__)."/../include/shop/left.php"); ?>
          <div class="span9">
            <div class="main-content">
              <div class="content-header">
                <h3>店铺中心</h3>
                <button class="btn btn-yellow zyFlrBtn" id=""><a href="<?php echo SITE_ROOT;?>/shop/shop_edit.php">修改</a></button>
              </div>
              <div class="content-inner">
                <table class="favor_table table table-striped">
                  <tbody>
                    <tr class="favor_food" >
                      <td width="90">店铺名称：</td>
                      <td><span class="admin_del" foodId="1484651"> <?php echo $shop['shop_name'];?> </span></td>
                    </tr>
                    <tr class="favor_food" >
                      <td>店铺地址：</td>
                      <td><span class="admin_del" foodId="1484651"> <?php echo $shop['shop_address'];?> </span></td>
                    </tr>
					<tr class="favor_food" >
                      <td>店铺电话：</td>
                      <td><span class="admin_del" foodId="1484651"> <?php echo $shop['shop_phone'];?> </span></td>
                    </tr>
					<tr class="favor_food" >
                      <td>店铺描述：</td>
                      <td><span class="admin_del" foodId="1484651"> <?php echo $shop['description'];?> </span></td>
                    </tr>
                    <tr class="favor_food" >
                      <td>加盟时间：</td>
                      <td><span class="admin_del" foodId="1484651"> <?php echo $shop['join_time'];?> </span></td>
                    </tr>
                    <tr class="favor_food" >
                      <td>店铺简介：</td>
                      <td><span class="admin_del" foodId="1484651"> <?php echo $shop['introduction'];?> </span></td>
                    </tr>
                    <tr class="favor_food" >
                      <td>店内公告：</td>
                      <td><span class="admin_del" foodId="1484651"> <?php echo $shop['announce'];?> </span></td>
                    </tr>
                    <tr class="favor_food" >
                      <td>起送价格：</td>
                      <td><span class="admin_del" foodId="1484651"> <?php echo $shop['start_price'];?> </span>元</td>
                    </tr>
					<tr class="favor_food" >
                      <td>外送费用：</td>
                      <td><span class="admin_del" foodId="1484651"> <?php echo $shop['surcharge'];?> </span>元</td>
                    </tr>
                    <tr class="favor_food" >
                      <td>商圈范围：</td>
                      <td><span class="admin_del" foodId="1484651"> <?php echo $shop['district'];?> </span></td>
                    </tr>
                    <tr class="favor_food" >
                      <td>商圈距离：</td>
                      <td><span class="admin_del" foodId="1484651"> <?php echo $shop['distance'];?> </span>米</td>
                    </tr>
                    <tr class="favor_food" >
                      <td>营业时间：</td>
                      <td><span class="admin_del" foodId="1484651"> <?php echo $shop['opening_hours'];?> </span></td>
                    </tr>
                    <tr class="favor_food" >
                      <td>送餐时间：</td>
                      <td><span class="admin_del" foodId="1484651"> <?php echo $shop['delivery_time'];?> </span></td>
                    </tr>
					<tr class="favor_food" >
                      <td>送餐时长：</td>
                      <td><span class="admin_del" foodId="1484651"> <?php echo $shop['delivery_long'];?> </span>分钟</td>
                    </tr>
                    <tr class="favor_food" >
                      <td>餐厅类型：</td>
                      <td><span class="admin_del" foodId="1484651"> 
					  <?php 
					  	if(strpos($shop['shop_type'],"a1")>0){
					  		echo "本周推荐&nbsp;&nbsp;";
						}
						if(strpos($shop['shop_type'],"a2")>0){
					  		echo "江浙菜&nbsp;&nbsp;";
						}
						if(strpos($shop['shop_type'],"a3")>0){
					  		echo "快餐小吃&nbsp;&nbsp;";
						}
						if(strpos($shop['shop_type'],"a4")>0){
					  		echo "日韩料理&nbsp;&nbsp;";
						}
						if(strpos($shop['shop_type'],"a5")>0){
					  		echo "川菜&nbsp;&nbsp;";
						}
						if(strpos($shop['shop_type'],"a6")>0){
					  		echo "奶茶甜点&nbsp;&nbsp;";
						}
					  ?> 
					  </span></td>
                    </tr>
                  </tbody>
                </table>
              </div>
              <!--end contentarea--> 
            </div>
            <!--end marin-content--> 
          </div>
        </div>
      </div>
    </div>
  </div>
  <a id="back-to-top" href="javascript:void(0);">
  <div class="backtotop"></div>
  </a> </div>
<?php include (dirname(__FILE__)."/../include/footer.php"); ?>